<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <TargetFramework>$(_TargetFrameworkForXHarness)</TargetFramework>
    <TargetFramework Condition="'$(TargetFramework)' == ''">$(AspNetCoreAppCurrent)</TargetFramework>
    <AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
    <OutputType>Exe</OutputType>
    <EnableDefaultCompileItems>false</EnableDefaultCompileItems>
    <EnableDefaultContentItems>false</EnableDefaultContentItems>

    <DefineConstants Condition="'$(GenevaTelemetry)' == 'true'">$(DefineConstants);GENEVA_TELEMETRY</DefineConstants>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Newtonsoft.Json" Version="$(NewtonsoftJsonVersion)" />
  </ItemGroup>

  <ItemGroup Condition="'$(GenevaTelemetry)' == 'true'">
    <PackageReference Include="OpenTelemetry" Version="1.2.0-rc2" />
    <PackageReference Include="OpenTelemetry.Exporter.Console" Version="1.2.0-rc2" />
    <PackageReference Include="OpenTelemetry.Exporter.Geneva" Version="1.2.1" />
    <PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.0.0-rc9" />
    <PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.0.0-rc9" />
  </ItemGroup>

  <ItemGroup>
    <Compile Include="Handlers\DeflateHandler.cs" />
    <Compile Include="Handlers\EchoHandler.cs" />
    <Compile Include="Handlers\EchoBodyHandler.cs" />
    <Compile Include="Handlers\EchoWebSocketHandler.cs" />
    <Compile Include="Handlers\EchoWebSocketHeadersHandler.cs" />
    <Compile Include="Handlers\EmptyContentHandler.cs" />
    <Compile Include="Handlers\GZipHandler.cs" />
    <Compile Include="Handlers\LargeResponse.cs" />
    <Compile Include="Handlers\RedirectHandler.cs" />
    <Compile Include="Handlers\StatusCodeHandler.cs" />
    <Compile Include="Handlers\TestHandler.cs" />
    <Compile Include="Handlers\VerifyUploadHandler.cs" />
    <Compile Include="Handlers\VersionHandler.cs" />
    <Compile Include="Helpers\AuthenticationHelper.cs" />
    <Compile Include="Helpers\ContentHelper.cs" />
    <Compile Include="Helpers\NameValueCollectionConverter.cs" />
    <Compile Include="Helpers\RequestHelper.cs" />
    <Compile Include="Helpers\RequestInformation.cs" />
    <Compile Include="GenericHandler.cs" />
    <Compile Include="Program.cs" />
    <Compile Include="Startup.cs" />
  </ItemGroup>
</Project>
